package com.big.model.model.merchandise;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 商品描述
 */
@Data
@ApiModel(description = "描述")
@TableName("merchandise_detail")
@AllArgsConstructor
@NoArgsConstructor
public class MerchandiseDetail {


    @ApiModelProperty(value = "编号")
    @TableField("id")
    private Long id;

    @ApiModelProperty(value = "商品编号")
    @TableField("d_id")
    private String dId;

    @ApiModelProperty(value = "商品简介")
    @TableField("d_intro")
    private String dIntro;

    @ApiModelProperty(value = "描述图")
    @TableField("d_image")
    private String dImage;


    @ApiModelProperty(value = "热度")
    @TableField("tag")
    private Integer tag;


    @ApiModelProperty(value = "类型")
    @TableField("cate_id")
    private Integer cateId;


    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();


}
